package com.mzz.structure.decorator;

/**
 * 实现装饰类： 添加额外的方法、
 * @author xushijian
 * @date 18/6/7 下午1:52
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        super.draw();
        setRedBorder(decoratedShape);
    }

    public void setRedBorder(Shape decorateShape) {
        System.out.println("花了红色边框...");

    }
}
